package com.bawei.service.impl;

import com.bawei.dao.IndentDao;
import com.bawei.pojo.Indent;
import com.bawei.pojo.Order;
import com.bawei.service.IndentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class IndentServiceImpl implements IndentService {
    @Autowired
    private IndentDao indentDao;

    @Override
    public Order findIndent(Integer middleId) {
        return indentDao.findIndent(middleId);
    }

    @Override
    public void addOrder(Indent indent) {
        indentDao.addOrder(indent);
    }

    @Override
    public void update(String out_trade_no) {
        indentDao.update(out_trade_no);
    }

    @Override
    public Indent getMiddleId(String out_trade_no) {
        return indentDao.getMiddleId(out_trade_no);
    }

    @Override
    public void updateStatus(String msg) {
        indentDao.updateStatus(msg);
    }

    @Override
    public Indent getStatus(String msg) {
        return indentDao.getStatus(msg);
    }
}
